<%@page import="java.net.URLEncoder"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	isELIgnored="false"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>头像编辑</title>
<link href="css/csipuser.css" rel="stylesheet" type="text/css" />
<link href="css/csipuser1.css" rel="stylesheet" type="text/css" />
<link href="css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
<!-- 当用户头像没有时加载默认头像 -->
<script type="text/javascript">
	function picerror(doc) {
		doc.onerror = null;
		doc.src = 'images/default.gif';
	}
	function updateavatar() {
		window.location.reload();
	}
</script>
</head>
<body>
	<%
		String url = URLEncoder.encode("http://127.0.0.1:8080/myspace/avatar");
	%>
		<div>
			<form method="post" action="" class="c_form">
				<table cellspacing="0" cellpadding="0" class="formtable">
					<caption>
					</caption>
					<tr>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td>提示：头像保存后，您可能需要刷新一下本页面(按F5键)，才能查看最新的头像效果。</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td><object
								classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
								codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
								width="447" height="252" id="mycamera" align="middle">
								<param name="allowScriptAccess" value="always" />
								<param name="scale" value="exactfit" />
								<param name="wmode" value="transparent" />
								<param name="quality" value="high" />
								<param name="bgcolor" value="#ffffff" />
								<param name="movie"
									value="images/camera.swf?nt=1&inajax=1&appid=0&uploadSize=2048&uid=1&input=<%=URLEncoder.encode("123")%>&agent=7793979e70bb01e23833a4f7789d7a63&ucapi=<%=url%>" />
								<param name="menu" value="false" />
								<embed
									src="images/camera.swf?nt=1&inajax=1&appid=0&uploadSize=2048&uid=1&input=<%=URLEncoder.encode("123")%>&agent=7793979e70bb01e23833a4f7789d7a63&ucapi=<%=url%>"
									quality="high" bgcolor="#ffffff" width="447" height="252"
									name="mycamera" align="middle" allowScriptAccess="always"
									allowFullScreen="false" scale="exactfit" wmode="transparent"
									type="application/x-shockwave-flash"
									pluginspage="http://www.macromedia.com/go/getflashplayer" />
							</object></td>
					</tr>
					<tr align="right">
						<td><a href="<%=path %>/index.jsp"><h1>取消操作</h1></a></td>
					</tr>
				</table>
				<input type="hidden" name="formhash" value="5d49796b" />
			</form>
		</div>
</body>
</html>

